-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(nvidia): install legacy NVIDIA driver on older GPUs #3956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(nvidia): install legacy NVIDIA driver on older GPUs #3956
Conversation
|
Should we inform users whether their graphics card is currently supported by NVIDIA or by the Arch team? Right now, the script assumes that if a user does not have a GPU newer than the Pascal architecture, it will get the 580xx driver, which is not supported by older cards, and users are likely going to be unaware of this. |
|
this should handle migration for mentioned cards echo "Migrate legacy NVIDIA GPUs to nvidia-580xx driver"
# Skip if no nvidia packages are installed
if ! pacman -Qq 2>/dev/null | grep -q '^nvidia'; then
exit 0
fi
# Skip if its a "modern" gpu
if lspci | grep -iE 'nvidia. *(RTX [2-9][0-9]|GTX 16)'; then
exit 0
fi
# Remove current nvidia driver packages
omarchy-pkg-drop nvidia nvidia-dkms nvidia-utils lib32-nvidia-utils
# Install 580xx driver from AUR
yay -S --needed --noconfirm nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils
|
Thanks for taking the time to review my PR! Yeah it may be simplest to just inform the user if their GPU is legacy and unsupported based on this status table and direct them to the wiki if so. |
|
@ryanrhughes nvidia-580xx-dkms and related packages are only available on AUR. Therefore they need to be installed using yay. Also, my intention with this script was not only for Omarchy; rather, it was meant to be a general script to help people who want to use Hyprland + Arch with Nvidia cards. (Also for those who wants to install omarchy manually) Thanks for all your hard work again. |
|
@Kn0ax the 580xx packages were added to OPR. omacom-io/omarchy-pkgs@d87dd64 We only install packages from there so that we can ensure they're available in the ISO for offline installations. They'll get built and released there so they're available before we release this. 🙂
I definitely have an appreciation for this idea but generally speaking; this becomes an incredibly slippery slope and is outside of the scope of the install file, I believe. That would need to live in a different utility somewhere as the files in As it sits now, it would work well for anyone whether they were using the ISO or manual install method.
|
|
Thanks for the info about OPR. Last time I checked, OPR was for Omarchy-specific custom packages (like the Chromium fork, etc.), so good to know. I’ll probably make a separate gist for the "generalized" script. Pulling it from here was a nice little party trick for me :') |
|
The original setup was just to host some extras but as Arch / AUR has faced continual attacks, we upped it to house all packages we rely on for Omarchy. This gives us more stability and control and even allows us to maintain our stable vs edge setup with the AUR packages as well. |
Fixes #3954
This PR updates the NVIDIA hardware install script to install the legacy NVIDIA driver for older GPUs (Pascal (10xx), Maxwell (9xx), Kepler (7xx)), as suggested in the recent Arch Linux announcement.